package com.bwie.controller;

import com.bwie.config.R;
import com.bwie.pojo.Personnel;
import com.bwie.service.PersonnelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.jnlp.PersistenceService;
import java.util.List;

/**
 * @Auther:${涛}
 * @Date:2024/9/2 10:04
 * @Description: personnelController
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/car")
public class personnelController {


    //人员列表

    @Autowired
    private PersonnelService personnelService;

    @PostMapping("/persistList")
    public R persistList() {
        List<Personnel> list = personnelService.list();
        return R.OK(list);
    }
}


